package org.example.library.service;

import org.example.library.pojo.BorrowRecord;
import org.example.library.pojo.dto.BorrowRecordDto;

import java.util.List;

public interface IBorrowRecordService {
    BorrowRecord add(BorrowRecordDto borrowRecordDto); // 添加借阅记录

    BorrowRecord update(BorrowRecordDto borrowRecordDto); // 更新借阅记录

    void delete(Integer recordId); // 删除借阅记录

    BorrowRecord getRecordById(Integer recordId); // 根据 ID 查询借阅记录

    List<BorrowRecord> getAllRecords();

    /**
     * 还书操作
     */
    BorrowRecord returnBook(Integer recordId);
}
